package com.guigu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.pojo.PurchaseDetailInfo;

import java.util.List;
import java.util.Map;

public interface PurchaseDetailInfoService extends IService<PurchaseDetailInfo> {

    //分页及所有
    Page<PurchaseDetailInfo> queryPurchaseDetails(PurchaseDetailInfo detail, Integer pageno, Integer pagesize);

    //改变设计状态，并且指定仓库，对仓库的锁定库存增加
    Map changeDetailInfoState(Integer purchaseDetailInfoId,Integer warId);

    //重新指定仓库，对仓库的锁定库存进行修正增加
    Map anewChangeDetailInfoState(Integer purchaseDetailInfoId, Integer warId);
}
